#!/bin/sh
echo '开始build'
b=$(cd `dirname $0`; pwd)
mvn -f $b/parent/pom.xml -U clean package install

mvn -f $b/parent/core/pom.xml -U clean package install 
mvn -f $b/parent/api/pom.xml -U clean package install 
mvn -f $b/parent/producer/pom.xml -U clean package install 
mvn -f $b/parent/consumer/pom.xml -U clean package install 

mvn -f $b/sample/pom.xml -U clean compile package install
mvn -f $b/sample/sample-api/pom.xml -U clean package install 
mvn -f $b/sample/sample-producer/pom.xml -U clean package 
mvn -f $b/sample/sample-consumer/pom.xml -U clean package 
